<?= $this->m_config->pesan(); ?>
<style type="text/css">
	table.main-table > tbody > tr:hover {
		background: #aaa!important;
		color:#fff;
	}
</style>
<div class="card">
	<div class="card-content">
		<div class="card-title">
			Daftar siswa yang sudah mengerjakan
		</div>
		<p class="table-responsive">
			<table class="table striped main-table" style="width: 100%">
				<thead>
					<tr>
						<th>
							Nama Siswa
						</th>
						<th>Kelas</th>
						<th>Nilai</th>
						<th>#</th>
					</tr>
				</thead>
			</table>
		</p>
	</div>
</div>
<script type="text/javascript">
	var table = $(".table").DataTable({
		"ajax": "<?= base_url('admin/jawaban/json_list/'.$id); ?>",
		"columns": [
		{ "data": "XNamaSiswa" },
		{ "data": "XNamaKelas" },
		{ "data": "XTotalNilai" },
		{ "data": "lihat" },
		],
		"order": [[1, 'asc'],[0, 'asc']]
	});

</script>